<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>dynamic_vector_buffer::dynamic_vector_buffer</title>
    <link rel="stylesheet" href="../../../boostbook.css" type="text/css">
    <meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
    <link rel="home" href="../../../index.html" title="Asio">
    <link rel="up" href="../dynamic_vector_buffer.html" title="dynamic_vector_buffer">
    <link rel="prev" href="data/overload3.html" title="dynamic_vector_buffer::data (3 of 3 overloads)">
    <link rel="next" href="dynamic_vector_buffer/overload1.html"
          title="dynamic_vector_buffer::dynamic_vector_buffer (1 of 3 overloads)">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%">
    <tr>
        <td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../asio.png"></td>
    </tr>
</table>
<hr>
<div class="spirit-nav">
    <a accesskey="p" href="data/overload3.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u"
                                                                                               href="../dynamic_vector_buffer.html"><img
        src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png"
                                                                                            alt="Home"></a><a
        accesskey="n" href="dynamic_vector_buffer/overload1.html"><img src="../../../next.png" alt="Next"></a>
</div>
<div class="section">
    <div class="titlepage">
        <div>
            <div><h4 class="title">
                <a name="asio.reference.dynamic_vector_buffer.dynamic_vector_buffer"></a><a class="link"
                                                                                            href="dynamic_vector_buffer.html"
                                                                                            title="dynamic_vector_buffer::dynamic_vector_buffer">dynamic_vector_buffer::dynamic_vector_buffer</a>
            </h4></div>
        </div>
    </div>
    <p>
        <a class="indexterm" name="asio.indexterm.dynamic_vector_buffer.dynamic_vector_buffer"></a>
        Construct
        a dynamic buffer from a vector.
    </p>
    <pre class="programlisting"><span class="keyword">explicit</span> <a class="link"
                                                                         href="dynamic_vector_buffer/overload1.html"
                                                                         title="dynamic_vector_buffer::dynamic_vector_buffer (1 of 3 overloads)">dynamic_vector_buffer</a><span
            class="special">(</span>
    <span class="identifier">std</span><span class="special">::</span><span class="identifier">vector</span><span
                class="special">&lt;</span> <span class="identifier">Elem</span><span class="special">,</span> <span
                class="identifier">Allocator</span> <span class="special">&gt;</span> <span class="special">&amp;</span> <span
                class="identifier">v</span><span class="special">,</span>
    <span class="identifier">std</span><span class="special">::</span><span class="identifier">size_t</span> <span
                class="identifier">maximum_size</span> <span class="special">=</span> <span
                class="special">(</span><span class="identifier">std</span><span class="special">::</span><span
                class="identifier">numeric_limits</span><span class="special">&lt;</span> <span
                class="identifier">std</span><span class="special">::</span><span class="identifier">size_t</span> <span
                class="special">&gt;::</span><span class="identifier">max</span><span class="special">)());</span>
  <span class="emphasis"><em>» <a class="link" href="dynamic_vector_buffer/overload1.html"
                                  title="dynamic_vector_buffer::dynamic_vector_buffer (1 of 3 overloads)">more...</a></em></span>
</pre>
    <p>
        <span class="bold"><strong>DynamicBuffer_v2:</strong></span> Copy construct a dynamic
        buffer.
    </p>
    <pre class="programlisting"><a class="link" href="dynamic_vector_buffer/overload2.html"
                                   title="dynamic_vector_buffer::dynamic_vector_buffer (2 of 3 overloads)">dynamic_vector_buffer</a><span
            class="special">(</span>
    <span class="keyword">const</span> <span class="identifier">dynamic_vector_buffer</span> <span
                class="special">&amp;</span> <span class="identifier">other</span><span class="special">);</span>
  <span class="emphasis"><em>» <a class="link" href="dynamic_vector_buffer/overload2.html"
                                  title="dynamic_vector_buffer::dynamic_vector_buffer (2 of 3 overloads)">more...</a></em></span>
</pre>
    <p>
        Move construct a dynamic buffer.
    </p>
    <pre class="programlisting"><a class="link" href="dynamic_vector_buffer/overload3.html"
                                   title="dynamic_vector_buffer::dynamic_vector_buffer (3 of 3 overloads)">dynamic_vector_buffer</a><span
            class="special">(</span>
    <span class="identifier">dynamic_vector_buffer</span> <span class="special">&amp;&amp;</span> <span
                class="identifier">other</span><span class="special">);</span>
  <span class="emphasis"><em>» <a class="link" href="dynamic_vector_buffer/overload3.html"
                                  title="dynamic_vector_buffer::dynamic_vector_buffer (3 of 3 overloads)">more...</a></em></span>
</pre>
</div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%">
    <tr>
        <td align="left"></td>
        <td align="right">
            <div class="copyright-footer">Copyright © 2003-2022 Christopher M. Kohlhoff<p>
                Distributed under the Boost Software License, Version 1.0. (See accompanying
                file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
            </p>
            </div>
        </td>
    </tr>
</table>
<hr>
<div class="spirit-nav">
    <a accesskey="p" href="data/overload3.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u"
                                                                                               href="../dynamic_vector_buffer.html"><img
        src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png"
                                                                                            alt="Home"></a><a
        accesskey="n" href="dynamic_vector_buffer/overload1.html"><img src="../../../next.png" alt="Next"></a>
</div>
</body>
</html>
